from __future__ import unicode_literals

from django.db import models

# Create your models here.
class Note(models.Model):
	title = models.CharField(max_length=200)
	body = models.TextField()
	created_at = models.DateTimeField(auto_now_add = True)

	def __str__(self):
		return '%s, %s' %(self.title, self.body)

class Tag(models.Model):
	note = models.ForeignKey(Note)
	name = models.CharField(max_length=50)
	def __str__(self):
		return self.name

